<template>
  <div class="hello">
    <h1>{{ msg }}</h1>
    hello
    <div>{{ msg }}</div>
    <div>
      <child-com :value="msg"></child-com>
    </div>
  </div>
</template>

<script lang="ts">
// import  from "vue";
import { Vue, Component, Watch, Prop } from "vue-property-decorator";
import childCom from "./childCom.vue";
@Component({
  components: {
    childCom
  }
})
export default class HelloWorld extends Vue {
  msg: number = 123;
  datamsg: any = {
    name: "zhtt",
    age: "90"
  };
  mounted() {
    this.getData();
  }
  getData() {
    console.log(this.msg);
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
h1,
h2 {
  font-weight: normal;
}
ul {
  list-style-type: none;
  padding: 0;
}
li {
  display: inline-block;
  margin: 0 10px;
}
a {
  color: #42b983;
}
</style>
